import * as types from "@/redux/mutation-types"

// 设置权限按钮
export const setAuthButtons = (authButtons: { [propName: string]: any}) => {
  return {
    type: types.SET_AUTH_BUTTONS,
    authButtons
  }
}

// 设置路由权限
export const setAuthRouter = (authRouter: string[]) => {
  return {
    type: types.SET_AUTH_ROUTER,
    authRouter
  }
}